package com.imarkket.Library;

import android.content.Context;
import android.telephony.TelephonyManager;

/**
 * Created by Sistemas on 23/05/2014.
 */
public class c_phone_status {

    static Context context;
    TelephonyManager tMgr = null;

    public c_phone_status(Context ctx) {
        context = ctx;
        this.tMgr = (TelephonyManager) context.getSystemService(context.TELEPHONY_SERVICE);
    }

    public String getDeviceid() {

        String parm = this.tMgr.getDeviceId();
        c_logging.getInstance().log(c_logging.LOG_INFO, "getDeviceid: " + parm);
        return parm;
    }

    public String getDeviceSoftwareVersion() {

        String parm = this.tMgr.getDeviceSoftwareVersion();
        c_logging.getInstance().log(c_logging.LOG_INFO, "getDeviceSoftwareVersion: " + parm);
        return parm;
    }

    public String getSimSerialNumber() {

        String parm = this.tMgr.getSimSerialNumber();
        c_logging.getInstance().log(c_logging.LOG_INFO, "getSimSerialNumber: " + parm);
        return parm;
    }
}